<template>
  <div>
    <van-picker-field
      v-model="value"
      :field-props="{
        label: '下拉选择',
        placeholder: '可选择',
      }"
      remote
      :multiple="multiple"
      title="标题"
      :columns="options"
      :columns-field-names="{
        text: 'label',
        value: 'value',
      }"
    >
    </van-picker-field>
  </div>
</template>

<script setup>
import { ref } from "vue";
const multiple = ref(false);

const options = ref([
  {
    label: "1",
    value: "1",
  },
  {
    label: "2",
    value: "2",
  },
]);

const value = ref(undefined);
</script>

<style lang="scss" scoped></style>
